const c = require("../controller/order.server.controller");
const ws = require("../net/getOrder.a2c.webService");

function fn_order(app) { //形参无所谓什么名字
    app.route("/order/:page")
        .get(c.findAllOrder)
        // .post(c.addUser)
    ;

    app.route("/order/reject/:oId")
        .put(c.rejectStatus);
    app.route("/order/deduct/:oId")
        .put(c.deductStatus);
    app.route("/order/black/:oId/:mId")
        .put(c.blackStatus);

    app.route("/order/DetailByOid/:oId")
        .get(ws.orderDetail)
    app.route("/order/get/status/:oId")
        .get(c.showOrderStatusWS)
}
module.exports = fn_order;
